package com.uobgroup.ews.uam.web.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import com.uobgroup.ews.uam.core.domain.ChangeLog;

public class SearchChangeLog {

   private String searchAction;

   @DateTimeFormat(iso = ISO.DATE)
   private Date searchFromDate;

   @DateTimeFormat(iso = ISO.DATE)
   private Date searchToDate;

   private String searchUserId;

   private Integer page;

   private Integer size;

   private List<ChangeLog> changeLogs = new ArrayList<ChangeLog>();

   public String getSearchAction() {
      return searchAction;
   }

   public void setSearchAction(String searchAction) {
      this.searchAction = searchAction;
   }

   public Date getSearchFromDate() {
      return searchFromDate;
   }

   public void setSearchFromDate(Date searchFromDate) {
      this.searchFromDate = searchFromDate;
   }

   public Date getSearchToDate() {
      return searchToDate;
   }

   public void setSearchToDate(Date searchToDate) {
      this.searchToDate = searchToDate;
   }

   public String getSearchUserId() {
      return searchUserId == null ? "" : searchUserId;
   }

   public void setSearchUserId(String searchUserId) {
      this.searchUserId = searchUserId;
   }

   public List<ChangeLog> getChangeLogs() {
      return changeLogs;
   }

   public void setChangeLogs(List<ChangeLog> changeLogs) {
      this.changeLogs = changeLogs;
   }

   public Integer getPage() {
      return page;
   }

   public void setPage(Integer page) {
      this.page = page;
   }

   public Integer getSize() {
      return size;
   }

   public void setSize(Integer size) {
      this.size = size;
   }

}
